<include file="__PUBLIC__/header"/>
<div class="page-container">
    <form class="form form-horizontal" id="form" method="post" action="{|U:'add'}">

        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3"><span class="c-red">*</span>标识/表名：</label>
            <div class="formControls col-xs-6 col-sm-6">
                <input type="text" class="input-text" value="" placeholder="如：download" name="table_name"
                       datatype="*" nullmsg="请输入模型标识/表名"/>
            </div>
            <div class="col-xs-3 col-sm-3">模型标识,用于生成数据库表</div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3"><span class="c-red">*</span>模型名称：</label>
            <div class="formControls col-xs-6 col-sm-6">
                <input type="text" class="input-text" value="" placeholder="如：下载" name="model_name"
                       datatype="*" nullmsg="请输入模型名称"/>
            </div>
            <div class="col-xs-3 col-sm-3">模型的名称,用于显示</div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3">投稿：</label>
            <div class="formControls col-xs-6 col-sm-6">
                <div class="select-box">
                    <select name="contribute" class="select">
                        <option value="1">允许投稿</option>
                        <option value="0">禁止投稿</option>
                    </select>
                </div>
            </div>
            <div class="col-xs-3 col-sm-3">是否允许投稿？</div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3">模型状态：</label>
            <div class="formControls col-xs-6 col-sm-6">
                <div class="select-box">
                    <select name="enable" class="select">
                        <option value="1">开启模型</option>
                        <option value="0">关闭模型</option>
                    </select>
                </div>
            </div>
            <div class="col-xs-3 col-sm-3"></div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3">模型描述：</label>
            <div class="formControls col-xs-6 col-sm-6">
                <textarea name="model_description" class="textarea"></textarea>
            </div>
            <div class="col-xs-3 col-sm-3">模型描述</div>
        </div>

        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                <button type="submit" class="btn btn-primary radius"><i class="iconfont icon-duigou1"></i> 提交</button>
                <button type="button" class="btn btn-default radius ml-20" onClick="layer_close();">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
            </div>
        </div>
    </form>
</div>
<include file="__PUBLIC__/footer"/>
<script>
    $(function () {
        //表单提交
        $("#form").Validform({
            tiptype: 2,
            ajaxPost: true,
            showAllError: true,
            callback: function (ret) {
                ajax_progress(ret);
            }
        });
    })
</script>
</body>
</html>